package com.igeek.ch01;

import org.springframework.context.annotation.Bean;

/**
 * TODO
 *
 * @author xuxin
 * @since 2024/5/20
 */
//@ComponentScan(basePackages = "com.igeek.config")//写包名称
//@ComponentScan
public class MyConfig {
    @Bean(value = "stu")
    public Student student(){
        return new Student();
    }
}
